package com.xyw.code.efficient_programming.lambda.option;

import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;

public class OptionDemo {
    public static void main(String[] args) {
        Optional.ofNullable(null).map(n->{
            System.out.printf("aaaa");
            return n;
        }).orElseGet(Stream::empty);
    }
}
